import request from "../../../utils/request";

class Found {
  static getList = () => request.get('/found')

  static delList=async(id)=>{
    let res = await request.delete('/found/'+id)
    return {data:[{message:'删除成功',code:200}]}
  }
  static changeList=async(obj)=>{
    let res = await request.patch('/found/'+obj.id,{flag:!obj.flag})
    return {data:[{message:'修改成功',code:200}]}
  }
}

export default Found